package www.dianbaozu.com.ui.manage

import androidx.hilt.lifecycle.ViewModelInject
import www.wen.com.common.lib.base.module.BaseAbsViewModel
import www.wen.com.common.lib.data.entities.InvitationEntity
import www.wen.com.common.lib.data.entities.Result
import www.wen.com.common.lib.data.repository.AppDataManager

class InvitationRecordViewModel @ViewModelInject constructor(appDataManager: AppDataManager) :
        BaseAbsViewModel<InvitationEntity, InvitationEntity.Content>(appDataManager) {

    override suspend fun requestListData(requiredParameter: Any): Result<InvitationEntity> =
            appDataManager.requestInviteList(requiredParameter as String, mPage, mLimit)

    override fun dataConversion(data: InvitationEntity): List<InvitationEntity.Content> {
        return data.content
    }

}